/**
 * 用于记录处理选择的cell
 */
class SkuPending {
    pending = []

    constructor() {

    }

    insertCell(cell, x) {
        this.pending[x] = cell
    }

    removeCell(x) {
        this.pending[x] = null
    }

    // 查询其他行已选元素
    findSelectedCellByX(x) {
        return this.pending[x]
    }

    isSelected(cell, x) {
        const pendingCell = this.pending[x]
        if (!pendingCell) {
            return false
        }
        return cell.id == pendingCell.id
    }

}
export {
    SkuPending
}